package com.example.telesys.service;

import com.example.telesys.interceptor.FeignPassToken;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-customer", configuration = FeignPassToken.class)
public interface CustomerService {


    @RequestMapping("/customer/selectAllCustomers")
    PageInfo selectAllCustomers(@RequestParam("pageNumber") Integer pageNumber, @RequestParam("pageSize") Integer pageSize);

    @RequestMapping("/customer/selectCustomersByName")
    PageInfo selectCustomersByName(@RequestParam("customername") String customername, @RequestParam("pageNumber") Integer pageNumber, @RequestParam("pageSize") Integer pageSize);

}
